javascript loop through array

41

javascript loop through array -

const array = ["one", "two", "three"]
array.forEach(function (item, index) {
  console.log(item, index);
});

Comments

Submit
0 Comments